#基础镜像，如果本地仓库没有，会从远程仓库拉取
FROM openjdk:8-jdk-alpine
#容器中创建目录
RUN mkdir -p /usr/local/myapp
#编译后的jar包copy到容器中创建到目录内
COPY ./target/study-user.jar /usr/local/myapp/
EXPOSE 8080
CMD ["java","-Xms512m","-Xmx512m","-DAPP_DOMAIN=bsy-user","-jar","study-user.jar"]